<div>
    <h2>
        <span jhiTranslate="gatewayApp.snapshotPending.home.title">Snapshot Pendings</span>
        <button class="btn btn-primary float-right jh-create-entity create-snapshot-pending" [routerLink]="['/', { outlets: { popup: ['snapshot-pending-new'] } }]">
            <span class="fa fa-plus"></span>
            <span class="hidden-sm-down"  jhiTranslate="gatewayApp.snapshotPending.home.createLabel">
            Create new Snapshot Pending
            </span>
        </button>
    </h2>
    <jhi-alert></jhi-alert>
    <div class="row">
        <div class="col-sm-12">
            <form name="searchForm" class="form-inline">
                <div class="input-group w-100 mt-3">
                    <input type="text" class="form-control" [(ngModel)]="currentSearch" id="currentSearch" name="currentSearch" placeholder="{{ 'gatewayApp.snapshotPending.home.search' | translate }}">
                    <button class="input-group-addon btn btn-info" (click)="search(currentSearch)">
                        <span class="fa fa-search"></span>
                    </button>
                    <button class="input-group-addon btn btn-danger" (click)="clear()" *ngIf="currentSearch">
                        <span class="fa fa-trash-o"></span>
                    </button>
                </div>
            </form>
        </div>
    </div>
    <br/>
    <div class="table-responsive" *ngIf="snapshotPendings">
        <table class="table table-striped">
            <thead>
            <tr>
            <th><span jhiTranslate="global.field.id">ID</span></th>
            <th><span jhiTranslate="gatewayApp.snapshotPending.domainName">Domain Name</span></th>
            <th><span jhiTranslate="gatewayApp.snapshotPending.domainPath">Domain Path</span></th>
            <th><span jhiTranslate="gatewayApp.snapshotPending.createSource">Create Source</span></th>
            <th><span jhiTranslate="gatewayApp.snapshotPending.priority">Priority</span></th>
            <th><span jhiTranslate="gatewayApp.snapshotPending.state">State</span></th>
            <th><span jhiTranslate="gatewayApp.snapshotPending.createBy">Create By</span></th>
            <th><span jhiTranslate="gatewayApp.snapshotPending.createDate">Create Date</span></th>
            <th><span jhiTranslate="gatewayApp.snapshotPending.updateBy">Update By</span></th>
            <th><span jhiTranslate="gatewayApp.snapshotPending.updateDate">Update Date</span></th>
            <th><span jhiTranslate="gatewayApp.snapshotPending.remarks">Remarks</span></th>
            <th><span jhiTranslate="gatewayApp.snapshotPending.delFlag">Del Flag</span></th>
            <th></th>
            </tr>
            </thead>
            <tbody>
            <tr *ngFor="let snapshotPending of snapshotPendings ;trackBy: trackId">
                <td><a [routerLink]="['../snapshot-pending', snapshotPending.id ]">{{snapshotPending.id}}</a></td>
                <td>{{snapshotPending.domainName}}</td>
                <td>{{snapshotPending.domainPath}}</td>
                <td>{{snapshotPending.createSource}}</td>
                <td>{{snapshotPending.priority}}</td>
                <td>{{snapshotPending.state}}</td>
                <td>{{snapshotPending.createBy}}</td>
                <td>{{snapshotPending.createDate | date:'medium'}}</td>
                <td>{{snapshotPending.updateBy}}</td>
                <td>{{snapshotPending.updateDate | date:'medium'}}</td>
                <td>{{snapshotPending.remarks}}</td>
                <td>{{snapshotPending.delFlag}}</td>
                <td class="text-right">
                    <div class="btn-group flex-btn-group-container">
                        <button type="submit"
                                [routerLink]="['../snapshot-pending', snapshotPending.id ]"
                                class="btn btn-info btn-sm">
                            <span class="fa fa-eye"></span>
                            <span class="d-none d-md-inline" jhiTranslate="entity.action.view">View</span>
                        </button>
                        <button type="submit"
                                [routerLink]="['/', { outlets: { popup: 'snapshot-pending/'+ snapshotPending.id + '/edit'} }]"
                                replaceUrl="true"
                                class="btn btn-primary btn-sm">
                            <span class="fa fa-pencil"></span>
                            <span class="d-none d-md-inline" jhiTranslate="entity.action.edit">Edit</span>
                        </button>
                        <button type="submit"
                                [routerLink]="['/', { outlets: { popup: 'snapshot-pending/'+ snapshotPending.id + '/delete'} }]"
                                replaceUrl="true"
                                class="btn btn-danger btn-sm">
                            <span class="fa fa-remove"></span>
                            <span class="d-none d-md-inline" jhiTranslate="entity.action.delete">Delete</span>
                        </button>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
